package com.sad.jetpack.v1.componentization.api;

import androidx.annotation.NonNull;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleOwner;

/**
 * 2025-5-29
 * 一旦宿主实现了此接口，意味着业务逻辑有需求要判断宿主示例是否符合调用方的需求。解决宿主对象侧“给不给”组件对象的问题
 *
 */
public interface IComponentHostInstanceSupport {
    /**
     * 判断宿主对象是否符合调用方的需求
     * @param requestOrgUrl
     * @param componentCallable 要获取的组件对象
     * @return
     */
    default boolean enableObtainComponentFromThisHostInstance(String requestOrgUrl,IComponentCallable componentCallable){
        return true;
    }

}
